home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3339 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1023 b   |  39 lines

  1. Path: news.london.sinet.slb.com!news
  2. From: Laurent Darton <darton@macon.wm.slb.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: ini files under MSVC 1.52 link problem
  5. Date: 23 Jan 1996 12:56:41 GMT
  6. Organization: Schlumberger SINet, London, England
  7. Message-ID: <4e2lu9$168@snlsu1>
  8. NNTP-Posting-Host: macon14.macon.wm.slb.com
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 1.22 (Windows; I; 16bit)
  13.  
  14. hi all,
  15. I would like to write in a private ini file under windows..
  16. here is what I've done
  17.  
  18. #include <windows.h>
  19.  
  20. void main(void)
  21. {
  22. BOOL  fSuccess;
  23. fSuccess=WritePrivateProfileString("MyApp","LastFile","testcode.c","testc
  24. ode.ini");
  25. }
  26.  
  27. I have a problem with link :
  28. MAIN.OBJ(r:\mbus\tsr\global\ini\main.cpp) : error L2029: 
  29. 'WRITEPRIVATEPROFILESTRING' : unresolved external
  30.  
  31. I think it 's a problem with uppercase letters...
  32. but I don't know how to solve it.
  33. Rem : I need to make a dos application not under windows..
  34. Any help will be welcom..
  35. Thanks in advance
  36. Laurent
  37.  
  38.  
  39.